package week4th;

public class CourseCompareTest {
    public static void main(String[] args) {
        Course a = new Course("AB", 502, "lallala");
        Course b = new Course("BA", 406, "sadafaa");
        if (a.compareTo(b) < 0)
            System.out.println("a排在b前面。");
        else if (a.compareTo(b) > 0)
            System.out.println("a排在b后面。");
        else
            System.out.println("a、b一样。");
    }
}
